<?php
/**
 * This is a Category Fixture.
 *
 * @copyright     Copyright 2008-2010, LilCake.net
 * @link          http://lilcake.net LilCake.net
 * @package       lil_blogs
 * @subpackage    lil_blogs.tests.fixtures
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
/**
 * CategoryFixture class
 *
 * @uses          CakeTestFixture
 * @package       lil_blogs
 * @subpackage    lil_blogs.tests.fixtures
 */
class CategoryFixture extends CakeTestFixture {
/**
 * name property
 *
 * @var string
 * @access public
 */
	var $name = 'Category';
/**
 * fields property
 *
 * @var array
 * @access public
 */
	var $fields = array(
			'id'        => array('type'=>'integer',  'null' => false, 'length' => 4, 'key' => 'primary'),
			'blog_id'   => array('type'=>'integer',  'null' => false, 'length' => 4),
			'parent_id' => array('type'=>'integer',  'null' => true, 'default' => NULL),
			'lft'       => array('type'=>'integer',  'null' => false),
			'rght'      => array('type'=>'integer',  'null' => false),
			'slug'      => array('type'=>'string',   'null' => false, 'length' => 100),
			'name'      => array('type'=>'string',   'null' => false, 'length' => 100),
			'created'   => array('type'=>'datetime', 'null' => true, 'default' => NULL),
			'modified'  => array('type'=>'datetime', 'null' => true, 'default' => NULL),
			'indexes'   => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
	);
/**
 * records property
 *
 * @var array
 * @access public
 */
	var $records = array(
		array(
			'id'  => 1,
			'blog_id'  => 1,
			'parent_id' => null,
			'lft' => 1,
			'rght' => 2,
			'slug' => 'programming',
			'name'  => 'Programming',
			'created'  => '2008-01-23 12:34:56',
			'modified'  => '2008-03-21 12:34:56'
		),
		array(
			'id'  => 2,
			'blog_id'  => 1,
			'parent_id' => null,
			'lft' => 3,
			'rght' => 4,
			'slug' => 'rant',
			'name'  => 'Rant',
			'created'  => '2008-04-05 11:22:33',
			'modified'  => '2008-11-22 11:22:33'
		),
		array(
			'id'  => 3,
			'blog_id'  => 2,
			'parent_id' => null,
			'lft' => 5,
			'rght' => 6,
			'slug' => 'spouse',
			'name'  => 'Spouse',
			'created'  => '2008-04-05 11:22:33',
			'modified'  => '2008-11-22 11:22:33'
		),
		array(
			'id'  => 4,
			'blog_id'  => 2,
			'parent_id' => null,
			'lft' => 7,
			'rght' => 10,
			'slug' => 'parents',
			'name'  => 'Parents',
			'created'  => '2008-04-05 11:22:33',
			'modified'  => '2008-11-22 11:22:33'
		),
		array(
			'id'  => 5,
			'blog_id'  => 2,
			'parent_id' => 4,
			'lft' => 8,
			'rght' => 9,
			'slug' => 'children',
			'name'  => 'Children',
			'created'  => '2008-04-05 11:22:33',
			'modified'  => '2008-11-22 11:22:33'
		),
	);
}
?>